#ifndef _COMMON_DEF_H_
#define _COMMON_DEF_H_

#include "common_err.h"
#include "common_libnamespace.h"

CHENLIB_NAMESPACE_BEGIN

#define Interface struct

#define MAX_DATE_LEN			4+1+2+1+2U
#define MAX_DATETIME_LEN		MAX_DATE_LEN+1+2+1+2+1+2U /* yyyy-mm-dd hh:mm:ss */
#define DEFAULT_DATETIME_FORMAT	%04d-%02d-%02d %02d:%02d:%02d


// Date and time
#define MONTH_PER_YEAR	12
#define WEEK_PER_MONTH	4
#define DAY_PER_WEEK	7
#define HOUR_PER_DAY	24
#define MIN_PER_HOUR	60
#define SECOND_PER_MIN	60
#define MS_PER_SECOND 	1000
#define US_PER_SECOND 	(1000 * MS_PER_SECOND)

CHENLIB_NAMESPACE_END

#endif
